#include "mobject.h"

MemoryPool* MObject::spPoolInstance = 0;

MemoryPool& MObject::rGetMemoryPool(size_t initialBlockSize)
{
    if( !spPoolInstance )
    {
        spPoolInstance = new MemoryPool( initialBlockSize );
    }

    return (*spPoolInstance);
}

void MObject::destroyMemoryPool()
{
    delete spPoolInstance;
    spPoolInstance = 0;
}

MObject::MObject()
{
}
